package com.ls.lsojcodesandbox.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {
    // 队列名称
    public static final String MESSAGE_QUEUE = "example.message.queue";
    public static final String QUESTION_SUBMIT_QUEUE = "question.submit.queue";

    // 用于接收题目提交的队列
    @Bean
    public Queue questionSubmitQueue() {
        return new Queue(QUESTION_SUBMIT_QUEUE, true);
    }
}
